package user

import (
	"github.com/gin-gonic/gin"
	"wj-go-web/controller"
	"wj-go-web/models"
)

type UserController struct {
	controller.BaseController
}

func (con UserController) Index(c *gin.Context) {
	//c.JSON(200, "index ")
	userList := []models.User{}
	//models.DB.Find(&userList)

	c.JSON(200, gin.H{
		"userList": userList,
	})
}
